1 <%@ Application Language="C#" %>
2 <script RunAt="server">
3 /****************************** Module Header ******************************\
4 * Module Name: Global.asax
5 * Project: CSASPNETHTMLEditorExtender
6 * Copyright (c) Microsoft Corporation
8 * We don't have to create this file, it is only used to catch the exception
9 * if we don't rebuild the whole solution when we first use it.
11 \*****************************************************************************/
12 void Application_Error(object sender, EventArgs e)
14 Exception err = Context.Server.GetLastError();
15 if (err.Message.IndexOf("AjaxControlToolkit") > -1)
17 Context.Server.ClearError();
18 Context.Response.Write(
19 "<html><head><title>CSASPNETHTMLEditorExtender</title></head>" +
20 "<body><p style='text-align:center'>Please rebuild " +
21 "the whole solution before you test it!</p></body></html>");